package com.huahang.fashionpress.controller;

import com.huahang.fashionpress.mapper.UserMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.annotation.Resource;

/**
 * @Author: 阿俊哥
 * @Date: 2019/8/17 12:35
 * @Version 1.0
 */
@Controller
@RequestMapping("/hello")
@Slf4j
public class HelloController {

    @Resource
    UserMapper userMapper;


    @RequestMapping("/word")
    @ResponseBody
    public String hello(){

        log.info("欢迎注释访问" +
                "sssss");


        return "欢迎访问！";

    }
    @RequestMapping("/order")
    public ModelAndView getOrderList(){
        return new ModelAndView("admin/order/list");
    }

    @RequestMapping("/navbar")
    public ModelAndView getnav(){
        return new ModelAndView("admin/navbar");
    }
    @RequestMapping("/login")
    public ModelAndView login(){
        return new ModelAndView("admin/login/login");
    }
    @RequestMapping("/addproduct")
    public ModelAndView addproduct(){
        return new ModelAndView("admin/product/add");
    }
}
